package org.onionframework.persistence.query.projection;

import org.onionframework.persistence.query.DatePart;


public class DatePartProjection extends Projection {

	private DatePart part;
	private boolean grouped;
	
	public DatePartProjection(String property, boolean grouped, DatePart part) {
		super(ProjectionType.datePart, property);
		this.part = part;
		this.grouped = grouped;
	}
	
	public DatePartProjection(String property, boolean grouped, DatePart part, String alias) {
		this(property,grouped,part);
		this.alias = alias;
	}

	/**
	 * @return the pattern
	 */
	public DatePart getPart() {
		return part;
	}

	/**
	 * @return the grouped
	 */
	public boolean isGrouped() {
		return grouped;
	}
	

}
